# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=libucl
pkgver=0.8.2
pkgrel=2
pkgdesc="Universal configuration library parser"
url="https://github.com/vstakhov/libucl"
arch="all"
license="BSD-2-Clause"
makedepends="
	autoconf
	automake
	libtool
	"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/vstakhov/libucl/archive/refs/tags/$pkgver.tar.gz"
options="!check" # fail for no reason

prepare() {
	default_prepare
	autoreconf -fvi
}

build() {
	./configure \
		--prefix=/usr \
		--build=$CBUILD \
		--host=$CHOST

	make
}

check() {
	make -j1 check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
5cc64c20abc3ef7f29ad66aa226cd39714379e09afbbe987058eaab8cf6ea95307e67ec3992bc05e9f08b302b2c5dc75e9773733909b92dfebd82019f353ac5e  libucl-0.8.2.tar.gz
"
